package com.lrkj.property.domain;

import java.math.BigDecimal;

import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 楼栋信息对象 tm_floor
 *
 * @author yajun_ren
 * @date 2021-07-22
 */
@Data
public class Floor extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private String id;

    /**
     * 小区ID
     */
    @Excel(name = "小区ID")
    private String communityId;

    /**
     * 机构ID
     */
    private String deptId;

    /**
     * 楼编号
     */
    @Excel(name = "楼编号")
    private String floorNum;

    /**
     * 楼名称
     */
    @Excel(name = "楼名称")
    private String floorName;

    /**
     * 期数
     */
    @Excel(name = "期数")
    private String term;

    /**
     * 单元数
     */
    @Excel(name = "单元数")
    private Integer unitNum;

    /**
     * 层数
     */
    @Excel(name = "层数")
    private Integer layerNum;

    /**
     * 每层房间数
     */
    @Excel(name = "每层房间数")
    private Integer roomNum;

    /**
     * 楼面积
     */
    @Excel(name = "楼面积")
    private BigDecimal floorArea;

    /**
     * 是否有电梯
     */
    @Excel(name = "是否有电梯")
    private String lift;

    /**
     * 祖级ID
     */
    private String ancestors;

    /**
     * 经度
     */
    private String latitude;

    /**
     * 维度
     */
    private String longitude;

    /**
     * 位置坐标
     */
    private String position;

    /**
     * 数据来源
     */
    private String dataSourceId;

    /**
     * 数据状态（0正常 1停用）
     */
    @Excel(name = "数据状态", readConverterExp = "0=正常,1=停用")
    private String statusCd;

    private String communityName;

    private String deptName;

    //管家ID
    private Long butlerUserId;
    //管家名称
    private String butlerUserName;
    //管家电话
    private String butlerPhoneNum;

    //门牌号生成规则
    private String roomRule;

    //收据抬头
    private String receiptTitle;

    /** 管理区 */
    @Excel(name = "管理区")
    private String precinct;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("communityId", getCommunityId())
                .append("deptId", getDeptId())
                .append("floorNum", getFloorNum())
                .append("floorName", getFloorName())
                .append("term", getTerm())
                .append("unitNum", getUnitNum())
                .append("layerNum", getLayerNum())
                .append("roomNum", getRoomNum())
                .append("floorArea", getFloorArea())
                .append("lift", getLift())
                .append("ancestors", getAncestors())
                .append("latitude", getLatitude())
                .append("longitude", getLongitude())
                .append("position", getPosition())
                .append("dataSourceId", getDataSourceId())
                .append("statusCd", getStatusCd())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
